package pta;

import java.util.Scanner;

class Vehicle {
	private String kind;
	private double speed;
	private String color;

	public Vehicle() {

	}

	public Vehicle(String kind, double speed, String color) {
		this.kind = kind;
		this.speed = speed;
		this.color = color;
	}

	public String getKind() {
		return kind;
	}

	public double getSpeed() {
		return speed;
	}

	public String getColor() {
		return color;
	}

	public void setKind(String kind) {
		this.kind = kind;
	}

	public void setSpeed(double speed) {
		this.speed = speed;
	}

	public void setColor(String color) {
		this.color = color;
	}
}

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
//		创建Vehicle的对象
		Vehicle v1 = new Vehicle();
		Vehicle v2 = new Vehicle();
//		v1对象的设置
		v1.setKind(scanner.next());
		v1.setSpeed(scanner.nextDouble());
		v1.setColor(scanner.next());
//		v2对象的设置	
		v2.setKind(scanner.next());
		v2.setSpeed(scanner.nextDouble());
		v2.setColor(scanner.next());
		System.out.println("第一辆是" + v1.getKind() + ",时速为" + v1.getSpeed() + "km/h" + ",颜色为" + v1.getColor());
		System.out.println("第一辆是" + v2.getKind() + ",时速为" + v2.getSpeed() + "km/h" + ",颜色为" + v2.getColor());
	}
}